intervals = [
#   hosszu nev          rovid nev   fe'lhang tavolsag
    (['prim'],          ['t1'],     [0]),
    (['kis szekund'],   ['k2'],     [1]),
    (['nagy szekund'],  ['n2'],     [2]),
    (['kis terc'],      ['k3'],     [3]),
    (['nagy terc'],     ['n3'],     [4]),
    (['tiszta kvart'],  ['t4'],     [5]),
    (['bovitett kvart', 'szukitett kvint'],
        ['b4', 'sz5'], [6]),
    (['tiszta kvint'],  ['t5'],     [7]),
    (['kis szext'],     ['k6'],     [8]),
    (['nagy szext'],    ['n6'],     [9]),
    (['kis szeptim'],   ['k7'],     [10]),
    (['nagy szeptim'],  ['n7'],     [11]),
    (['tiszta oktav'],  ['t8'],     [12]),
    (['kis nona'],      ['k9'],     [13]),
    (['nagy nona'],     ['n9'],     [14]),
    (['kis decima'],    ['k10'],    [15]),
    (['nagy decima'],   ['n10'],    [16])
]

chords3 = [
    (['dur alap'],              ['d5'],     [4, 3]),
    (['dur szext'],             ['d6'],     [3, 5]),
    (['dur kvartszext'],        ['d46'],    [5, 4]),
    (['moll alap'],             ['m5'],     [3, 4]),
    (['moll szext'],            ['m6'],     [4, 5]),
    (['moll kvartszext'],       ['m46'],    [5, 3]),
    (['bovitett'],              ['b'] ,     [4, 4]),
    (['szukitett alap'],        ['sz5'],    [3, 3]),
    (['szukitett szext'],       ['sz6'],    [3, 6]),
    (['szukitett kvartszext'],  ['sz46'],   [6, 3]),
]

chords4 = [
    (['major, szeptim forditas'],               ['maj7_7'],         [4, 3, 4]),
    (['dominans szeptim, szeptim forditas'],    ['7_7'],            [4, 3, 3]),
    (['moll major, szeptim forditas'],          ['mmaj7_7'],        [3, 4, 4]),
    (['moll szeptim, szeptim forditas'],        ['m7_7'],           [3, 4, 3]),
    (['bovitett major, szeptim forditas'],      ['maj7+5_7'],       [4, 4, 3]),
    (['bovitett szeptim, szeptim forditas'],    ['7+5_7'],          [4, 4, 2]),
    (['szukitett major, szeptim forditas'],     ['dimmaj7_7'],      [3, 3, 5]),
    (['felszukitett, szeptim forditas'],        ['m7-5_7'],         [3, 3, 4]),
    (['szukitett szeptim'],                     ['dim7'],           [3, 3, 3]),
                                                                   
    (['major, kvintszext forditas'],            ['maj7_56'],        [3, 4, 1]),
    (['dominans szeptim, kvintszext forditas'], ['7_56'],           [3, 3, 2]),
    (['moll major, kvintszext forditas'],       ['mmaj7_56'],       [4, 4, 1]),
    (['moll szeptim, kvintszext forditas'],     ['m7_56'],          [4, 3, 2]),
    (['bovitett major, kvintszext forditas'],   ['maj7+5_56'],      [4, 3, 1]),
    (['bovitett szeptim, kvintszext forditas'], ['7+5_56'],         [4, 2, 2]),
    (['szukitett major, kvintszext forditas'],  ['dimmaj7_56'],     [3, 5, 1]),
    (['felszukitett, kvintszext forditas'],     ['m7-5_56'],        [3, 4, 2]),
                                                                   
    (['major, terckvart forditas'],             ['maj7_34'],        [4, 1, 4]),
    (['dominans szeptim, terckvart forditas'],  ['7_34'],           [3, 2, 4]),
    (['moll major, terckvart forditas'],        ['mmaj7_34'],       [4, 1, 3]),
    (['moll szeptim, terckvart forditas'],      ['m7_34'],          [3, 2, 3]),
    (['bovitett major, terckvart forditas'],    ['maj7+5_34'],      [3, 1, 4]),
    (['bovitett szeptim, terckvart forditas'],  ['7+5_34'],         [2, 2, 4]),
    (['szukitett major, terckvart forditas'],   ['dimmaj7_34'],     [5, 1, 3]),
    (['felszukitett, terckvart forditas'],      ['m7-5_34'],        [4, 2, 3]),
                                                                   
    (['major, szekund forditas'],               ['maj7_2'],         [1, 4, 3]),
    (['dominans szeptim, szekund forditas'],    ['7_2'],            [2, 4, 3]),
    (['moll major, szekund forditas'],          ['mmaj7_2'],        [1, 3, 4]),
    (['moll szeptim, szekund forditas'],        ['m7_2'],           [2, 3, 4]),
    (['bovitett major, szekund forditas'],      ['maj7+5_2'],       [1, 4, 4]),
    (['bovitett szeptim, szekund forditas'],    ['7+5_2'],          [2, 4, 4]),
    (['szukitett major, szekund forditas'],     ['dimmaj7_2'],      [1, 3, 3]),
    (['felszukitett, szekund forditas'],        ['m7-5_2'],         [2, 3, 3]),
]

modalscales = [
    (['ion'],       ['dur_1'],          [2, 2, 1, 2, 2, 2, 1]),
    (['dor'],       ['dur_2'],          [2, 1, 2, 2, 2, 1, 2]),
    (['frig'],      ['dur_3'],          [1, 2, 2, 2, 1, 2, 2]),
    (['lid'],       ['dur_4'],          [2, 2, 2, 1, 2, 2, 1]),
    (['mixolid'],   ['dur_5'],          [2, 2, 1, 2, 2, 1, 2]),
    (['eol'],       ['dur_6'],          [2, 1, 2, 2, 1, 2, 2]),
    (['lokriszi'],  ['dur_7'],          [1, 2, 2, 1, 2, 2, 2]),

    (['osszhangzatos moll I. modusz'],      ['ossz_moll_1'],    [2, 1, 2, 2, 1, 3, 1]),
    (['osszhangzatos moll II. modusz'],     ['ossz_moll_2'],    [1, 2, 2, 1, 3, 1, 2]),
    (['osszhangzatos moll III. modusz'],    ['ossz_moll_3'],    [2, 2, 1, 3, 1, 2, 1]),
    (['osszhangzatos moll IV. modusz'],     ['ossz_moll_4'],    [2, 1, 3, 1, 2, 1, 2]),
    (['osszhangzatos moll V. modusz'],      ['ossz_moll_5'],    [1, 3, 1, 2, 1, 2, 2]),
    (['osszhangzatos moll VI. modusz'],     ['ossz_moll_6'],    [3, 1, 2, 1, 2, 2, 1]),
    (['osszhangzatos moll VII. modusz'],    ['ossz_moll_7'],    [1, 2, 1, 2, 2, 1, 3]),
                                                               
    (['melodikus moll I. modusz'],          ['mel_moll_1'],     [2, 1, 2, 2, 2, 2, 1]),
    (['melodikus moll II. modusz'],         ['mel_moll_2'],     [1, 2, 2, 2, 2, 1, 2]),
    (['melodikus moll III. modusz'],        ['mel_moll_3'],     [2, 2, 2, 2, 1, 2, 1]),
    (['melodikus moll IV. modusz'],         ['mel_moll_4'],     [2, 2, 2, 1, 2, 1, 2]),
    (['melodikus moll V. modusz'],          ['mel_moll_5'],     [2, 2, 1, 2, 1, 2, 2]),
    (['melodikus moll VI. modusz'],         ['mel_moll_6'],     [2, 1, 2, 1, 2, 2, 2]),
    (['melodikus moll VII. modusz'],        ['mel_moll_7'],     [1, 2, 1, 2, 2, 2, 2]),
]

names = {
    'interval': (intervals, 200),
    '3-chord': (chords3, 0),
    '4-chord': (chords4, 0),
    'modal scale': (modalscales, 200),
}
